import axios from "@/libs/api.request"
let baseUrl = "http://192.168.1.68:18084"
export const getGoodsKindList = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/cat/get_cascade",
        params: data,
        method: "get"
    });
}

/**
 *  @title 新增分类
 *  @methods post
 * 
 */

export const addKind = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/cat",
        data: data,
        method: "post"
    });
}


/**
 *  @title 修改分类
 *  @methods post
 * 
 */
export const editKind = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/cat",
        data: data,
        method: "put"
    });
}

/**
 *  @title 根据名子查找品牌
 *  @methods get
 * 
 */
export const findBrandByName = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/brand/get_page",
        params: data,
        method: "get"
    });
}

export const getShopInfoList = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/goods/get_page",
        params: data,
        method: "get"
    });
}


/**
 * @title 删除商品
 * 
 */
export const delGoods = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/goods",
        params: data,
        method: "delete"
    });
}


/**
 * @title 获取所有品牌
 */
export const getBrandList = (data) => {
    return axios.request({
        url: "http://api/webProject_war_exploded/DatabaseAcess",
        method: "get"
    });
}




